Merged
Conversation
So can be scanned by code scanning
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR enables Ruby code scanning by CodeQL by extracting Ruby code from a script file into a proper .rb file and updating the CodeQL workflow configuration.
- Extracted Ruby code from
scripts/scan_printo a new library filescripts/scan_pr_lib.rb - Refactored the original script to use the extracted library
- Added Ruby language support to the CodeQL workflow
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| scripts/scan_pr_lib.rb | New Ruby library file containing the ScanPr class and all core functionality |
| scripts/scan_pr | Simplified script that now imports and uses the extracted library |
| .github/workflows/codeql.yml | Added 'ruby' to the list of languages scanned by CodeQL |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| @@ -0,0 +1,119 @@ | |||
| require 'json' | |||
There was a problem hiding this comment.
Copilot detected a code snippet with 2 occurrences. See search results for more details.
Matched Code Snippet
= OptionParser.new do |opts|
usage = <<EOF
Run Dependency Review on a repository.
\e[1mUsage:\e[22m
scripts/scan_pr [options] <pr_url>
\e[1mExample:\e[22m
scripts/scan_pr https://github.com/actions/dependency-review-action/pull/294
EOF
opts.banner = usage
opts.on('-c', '--config-file <FILE>', 'Use an external configuration file'
| @@ -0,0 +1,119 @@ | |||
| require 'json' | |||
There was a problem hiding this comment.
Copilot detected a code snippet with 2 occurrences. See search results for more details.
Matched Code Snippet
{
"GITHUB_REPOSITORY" => repo_nwo,
"GITHUB_EVENT_NAME" => "pull_request",
"GITHUB_EVENT_PATH" => event_file.path,
"GITHUB_STEP_SUMMARY" => "/dev/null"
}
# bash does not like variable names with dashes like the ones Actions
# uses (e.g. INPUT_REPO-TOKEN). Passing them through `env` instead of
# manually setting them does the job.
action_inputs_env_str = action_inputs.map { |name, value| "\"INPUT_#{name.upcase}=#{value}\"" }.join(" ")
dev_cmd = "./node_modules/.bin/nodemon --exec \"env #{action_inputs_env_str} node -r esbuild-register\" src/main.ts"
Open3.popen2e(dev_cmd_env, dev_cmd) do |stdin, out|
while line =
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
mergify bot
added a commit
to ArcadeData/arcadedb
that referenced
this pull request
Sep 29, 2025
…0 [skip ci] Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.7.3 to 4.8.0. Release notes *Sourced from [actions/dependency-review-action's releases](https://github.com/actions/dependency-review-action/releases).* > v4.8.0 > ------ > > What's Changed > -------------- > > * Make Ruby Code Scannable by [`@ljones140`](https://github.com/ljones140) in [actions/dependency-review-action#978](https://github.com/actions/dependency-review-action/pull/978) > * Batch some contributions for release by [`@brrygrdn`](https://github.com/brrygrdn) in [actions/dependency-review-action#986](https://github.com/actions/dependency-review-action/pull/986) > + Make license lists collapsable by [`@jasperkamerling`](https://github.com/jasperkamerling) > + feat: add large summary handling with artifact upload by [`@MattMencel`](https://github.com/MattMencel) > > New Contributors > ---------------- > > * [`@ljones140`](https://github.com/ljones140) made their first contribution in [actions/dependency-review-action#978](https://github.com/actions/dependency-review-action/pull/978) > * [`@jasperkamerling`](https://github.com/jasperkamerling) made their first contribution in [actions/dependency-review-action#986](https://github.com/actions/dependency-review-action/pull/986) > * [`@MattMencel`](https://github.com/MattMencel) made their first contribution in [actions/dependency-review-action#986](https://github.com/actions/dependency-review-action/pull/986) > > **Full Changelog**: <actions/dependency-review-action@v4...v4.8.0> Commits * [`56339e5`](actions/dependency-review-action@56339e5) Merge pull request [#988](https://github.com/actions/dependency-review-action/issues/988) from actions/brrygrdn/rc-4.8.0 * [`1688b74`](actions/dependency-review-action@1688b74) Bump to a 4.8.0 * [`31c9f17`](actions/dependency-review-action@31c9f17) Merge pull request [#987](https://github.com/actions/dependency-review-action/issues/987) from actions/rc-4.7.4 * [`eacde78`](actions/dependency-review-action@eacde78) Update version * [`8151009`](actions/dependency-review-action@8151009) Merge pull request [#986](https://github.com/actions/dependency-review-action/issues/986) from actions/brrygrdn/rc-4.7.4 * [`b472ec9`](actions/dependency-review-action@b472ec9) Add a quick regression test for the artefact summary * [`e0cedc5`](actions/dependency-review-action@e0cedc5) feat: add large summary handling with artifact upload * [`e3fdf0f`](actions/dependency-review-action@e3fdf0f) This ensures large allow or deny lists don't create huge comments * [`6fad417`](actions/dependency-review-action@6fad417) Merge pull request [#978](https://github.com/actions/dependency-review-action/issues/978) from actions/ljones140/make-ruby-code-scannable * [`e86e969`](actions/dependency-review-action@e86e969) Update scripts/scan\_pr\_lib.rb * Additional commits viewable in [compare view](actions/dependency-review-action@595b5ae...56339e5) [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
.rbfileWhy
Internal security findings are expecting ruby scan.
CodeQL was erroring when Ruby code was in
scan_pr. As file does not have a.rbextension CodeQL cannot scan.But as GitHub repo metrics say this repo has Ruby code scanning errors with.